package examples.model;

import java.util.Collection;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;

@Entity
public class Show {
    @Id
    private int id;
    private String name; 
    
    @OneToMany(mappedBy="show")
    Collection<Performance> performances;

    @ManyToMany
    Collection<Actor> actors;

    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
}
